#ifndef _DISP_H_
#define _DISP_H_

#include "../avrx/avrx.h"

#ifndef TRUE
#	define TRUE 	1
#endif

#ifndef FALSE
#	define FALSE 	0
#endif

#define SEGMENT_DIGIT_MAX  5

#define SEGMENT_O		   0
#define SEGMENT_DOT		   10
#define SEGMENT_DOT1   	   11
#define SEGMENT_DOT2   	   12
#define SEGMENT_COLON	   13
#define SEGMENT_QUOTE	   14
#define SEGMENT_DAT		   15
#define SEGMENT_N		   16
#define SEGMENT_F   	   17
#define SEGMENT_D   	   18
#define SEGMENT_ALL_OFF    19
#define SEGMENT_ALL_ON     20

#define SEGMENT_BLINK_AUTO	   20
#define SEGMENT_BLINK_ON	   21
#define SEGMENT_BLINK_OFF	   22

typedef struct SDisplayChar
{
   char act;
   char m_segment[SEGMENT_DIGIT_MAX];
   char m_opt;
}
 *psSDisplayChar, sSDisplayChar;


typedef struct SDisplayMessage
{
   MessageControlBlock m_mcb;
   psSDisplayChar m_ptr;
}
 *psSDisplayMessage, sSDisplayMessage;


extern sSDisplayMessage 	sDispCharMessage;           	// The message control
extern MessageQueue 		sDisplayQueue;           		// The message queue




#endif //_DISP_H_
